import request from '@/utils/request'

export default {
    //获取轮播图分页列表
    getSlideShowListPage(page, limit, slideShowQuery) {
        return request({
            url: `/slideShow/selectAll/${page}/${limit}`,
            method: 'post',
            data: slideShowQuery
        })
    },
    //批量移除轮播图到回收站或者删除
    removeShowListPage(checkList) {
        return request({
            url: `/slideShow/removeOrDelete`,
            method: 'post',
            data: checkList
        })
    },
    //添加轮播图
    addSlideShow(slideShow) {
        return request({
            url: `/slideShow/addSlideShow`,
            method: 'post',
            data: slideShow
        })
    },
    //根据id查询轮播图
    getSlideShow(id) {
        return request({
            url: `/slideShow/selectOne/${id}`,
            method: 'get'
        })
    },
    //修改轮播图
    updateSlideShow(slideShow) {
        return request({
            url: `/slideShow/updateSlideShow`,
            method: 'post',
            data: slideShow
        })
    },
    //分页显示轮播图回收站列表
    recycleSlideShowPage(page, limit, slideShowQuery) {
        return request({
            url: `/slideShow/selectRecycleAll/${page}/${limit}`,
            method: 'post',
            data: slideShowQuery
        })
    },
    //从回收站恢复数据
    recoverSlideShow(checkList) {
        return request({
            url: `/slideShow/recoverSlideShow`,
            method: 'post',
            data: checkList
        })
    },

}